package org.mil.bean.dom;

public class TrackDOFactory {
	public static TrackDO newInstance(String type){
		
		if ("general".equalsIgnoreCase(type)) return newGeneralTrackDO(); 
		if ("video".equalsIgnoreCase(type)) return newVideoTrackDO();
		if ("audio".equalsIgnoreCase(type)) return newAudioTrackDO();
		if ("text".equalsIgnoreCase(type)) return newTextTrackDO();
		return null;		
	}
	
	public static GeneralTrackDO newGeneralTrackDO(){				
		 return new GeneralTrackDO(); 
			
	}
	public static VideoTrackDO newVideoTrackDO(){		
		 return new VideoTrackDO(); 
			
	}
	public static AudioTrackDO newAudioTrackDO(){		
		 return new AudioTrackDO(); 			
	}
	
	public static TextTrackDO newTextTrackDO(){		
		 return new TextTrackDO(); 			
	}
}
